# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corestuff
pkgver=4.3.0
pkgrel=0
pkgdesc="An activity viewer from C-Suite"
# s390x and riscv64 blocked by polkit -> libcsys
arch="all !armhf !s390x !riscv64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libcsys-dev qt5-qtx11extras-dev
	libxcomposite-dev kglobalaccel-dev libxi-dev xcb-util-wm-dev xcb-util-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corestuff/-/archive/v$pkgver/corestuff-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build -GNinja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c478babd01532850593aa1b546636e3e1c7b59caa84c3e662b92827ffff35a27046a64b18c2bf2b996c8a0b538dbec4c3947d59936ed14142f15a786049e9185  corestuff-4.3.0.tar.gz
"
